//
//  AssetRequest.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/6/14.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

enum CoinAccountType {
    case legalType
    case coinType
    case leverType
}
class AssetRequest: BaseRequest {
    var type:CoinAccountType?
    var name:String = ""
    override func path() -> String {
        if type == .legalType {
            return Api.Mine.legalInformation
        }else if type == .coinType {
            return Api.Mine.coinInformation
        }else {
            return Api.Mine.leverInformation
        }
    }
    override func method() -> HTTPMethodType {
        return .get
    }
   
}
